package com.springboot.demo.model.par;

import com.cx.item.common.par.check.CheckParInterface;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiParam;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class OrderPar implements CheckParInterface {

    private Integer orderId;

    @ApiModelProperty("用户id")
    private Integer customerId;

    @ApiModelProperty("商品id,月嫂类请传1，其他类型 请从上个接口获取")
    private Integer goodsId;

    @ApiModelProperty("月嫂id")
    private Integer StaffId;


    @ApiModelProperty("新生儿:0否,1是")
    private Integer isBaby;

    @ApiModelProperty("预产期")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date babyExpectedDate;

    @ApiModelProperty("1男,0女")
    private Integer babySex;

    @ApiModelProperty("月龄")
    private String babyMonthsAge;

    @ApiModelProperty("服务星级")
    private String serviceLevel;

    @ApiModelProperty("服务开始日期")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date serviceBeginTime;

    @ApiModelProperty("服务结束日期")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date serviceEndTime;

    @ApiModelProperty("服务每天开始时间")
    @JsonFormat(timezone = "GMT+8", pattern = "HH:mm")
    @DateTimeFormat(pattern = "HH:mm")
    private Date serviceDayBeginTime;

    @ApiModelProperty("服务每天结束时间")
    @JsonFormat(timezone = "GMT+8", pattern = "HH:mm")
    @DateTimeFormat(pattern = "HH:mm")
    private Date serviceDayEndTime;

    @ApiModelProperty("姓名")
    private String name;

    @ApiModelProperty("电话")
    private String phone;

    @ApiModelProperty("详细地址")
    private String detailedAddress;

    @ApiModelProperty("订单价格  月嫂类的订单价格由前端传入 ")
    private BigDecimal orderPrice;

    @ApiModelProperty("实际支付价格")
    @ApiParam(hidden = true)
    private BigDecimal payPrice;

    @ApiModelProperty("服务内容")
    private String serveContent;


}